package com.cskaoyan.service;

import com.cskaoyan.bean.User;
import com.cskaoyan.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public List<User> queryUsers() {
        List<User> users = userMapper.selectUsers();
        return users;
    }

    @Override
    public int addUsers(User user) {
        int i = userMapper.addUsers(user);
        return i;
    }
}
